import Vuex from "vuex";
import Vue from "vue";
import mutations from "./mutations";
import getters from "./getters";
import state from "./state";
import actions from "./actions";

Vue.use(Vuex)




// 通过mutations间接更新state中多个方法的对象

// 多个基于state的getter计算属性对象
export default new Vuex.Store({
    actions,
    mutations,
    state,
    getters
})